
<div style="POSITION: relative" id="content">
  <h3>easyUI window和布局</h3>
  <div id="article_content" class="article_content">
    <p>Layout 组件可以内嵌在window组件中,我们可以创建一个复杂的窗体布局甚至不需要写任何的js代码,&nbsp;jquery-easyui框架帮我们做渲染和调整尺寸在后台.<br>
    </p>
    <p>作为一个示例我们创建一个window它包含两个部分,一个放置在左边一个放置在右边,在窗体的左边我们创建一个tree,在窗体的右边我们创建一个tabs
    容器.</p>
    <p><img src="documentation/images/1344675808_7343.png" alt=""></p>
    <p>
    <pre name="code" class="html">&lt;div class=&quot;easyui-window&quot; title=&quot;Layout Window&quot; icon=&quot;icon-help&quot; style=&quot;width:500px;height:250px;padding:5px;background: #fafafa;&quot;&gt;  
    &lt;div class=&quot;easyui-layout&quot; fit=&quot;true&quot;&gt;  
        &lt;div region=&quot;west&quot; split=&quot;true&quot; style=&quot;width:120px;&quot;&gt;  
            &lt;ul class=&quot;easyui-tree&quot;&gt;  
                &lt;li&gt;  
                    &lt;span&gt;Library&lt;/span&gt;  
                    &lt;ul&gt;  
                        &lt;li&gt;&lt;span&gt;easyui&lt;/span&gt;&lt;/li&gt;  
                        &lt;li&gt;&lt;span&gt;Music&lt;/span&gt;&lt;/li&gt;  
                        &lt;li&gt;&lt;span&gt;Picture&lt;/span&gt;&lt;/li&gt;  
                        &lt;li&gt;&lt;span&gt;Database&lt;/span&gt;&lt;/li&gt;  
                    &lt;/ul&gt;  
                &lt;/li&gt;  
            &lt;/ul&gt;  
        &lt;/div&gt;  
        &lt;div region=&quot;center&quot; border=&quot;false&quot; border=&quot;false&quot;&gt;  
            &lt;div class=&quot;easyui-tabs&quot; fit=&quot;true&quot;&gt;  
                &lt;div title=&quot;Home&quot; style=&quot;padding:10px;&quot;&gt;  
                    jQuery easyui framework help you build your web page easily.  
                &lt;/div&gt;  
                &lt;div title=&quot;Contacts&quot;&gt;  
                    No contact data.  
                &lt;/div&gt;  
            &lt;/div&gt;  
        &lt;/div&gt;  
        &lt;div region=&quot;south&quot; border=&quot;false&quot; style=&quot;text-align:right;height:30px;line-height:30px;&quot;&gt;  
            &lt;a class=&quot;easyui-linkbutton&quot; icon=&quot;icon-ok&quot; href=&quot;javascript:void(0)&quot;&gt;Ok&lt;/a&gt;  
            &lt;a class=&quot;easyui-linkbutton&quot; icon=&quot;icon-cancel&quot; href=&quot;javascript:void(0)&quot;&gt;Cancel&lt;/a&gt;  
        &lt;/div&gt;  
    &lt;/div&gt;  
&lt;/div&gt;  </pre>
    请看以上代码,我们仅仅使用了<span style="font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif; font-size:14px; text-align:left">HTML
    标记一个复杂的布局窗体将显示,这就是<span style="font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif; font-size:14px; text-align:left">&nbsp;jquery-easyui框架,简单而强大.</span></span>
    </p>
    <h4 style="font-size:16px; color:rgb(204,0,0); margin:10px 0px; font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif; text-align:left"> 下载 EasyUI 示例代码:</h4>
    <div style="font-size:14px; font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif; text-align:left; padding-left:50px"> <a href="http://jquery-easyui.googlecode.com/svn/trunk/share/tutorial/window/easyui-window-demo3.zip" target="_blank" class="download-link" style="color:rgb(0,0,255)">easyui-window-demo.zip</a></div>
    <br>
  </div>
</div>
<SCRIPT type=text/javascript>
	dp.SyntaxHighlighter.ClipboardSwf = 'documentation/js/clipboard.swf'/*tpa=http://jeasyui.com/SyntaxHighlighter/Scripts/clipboard.swf*/;
	dp.SyntaxHighlighter.HighlightAll('code');
</SCRIPT>